// 定义与 Student 有关的规则

const mongoose = require('mongoose');

// 创建一个规则 ( 类似于指定表中的表结构 )
const studentSchema = new mongoose.Schema({
    name: { type: String, default: '' },
    gender: { type: String, default: '' },
    birthdate: { type: Date, default: null },
    hometown: { type: String, default: '' }
}, {
    versionKey: false
});

module.exports = studentSchema;